tools: warn_unused_result build fixes.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 12 Jun 2007 10:38:31 +0000 (11:38 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 12 Jun 2007 10:38:31 +0000 (11:38 +0100)
commitff2fc71eda783205e4eca61af1b60138251439cd
treee479c724179300c117c36074d2ed0b3e7f4c8215
parentab053a8b3369584cb18c4aa2473cf88f56b0294f
tools: warn_unused_result build fixes.

Note that some of the existing error checking for asprintf was wrong
for Linux.  asprintf in glibc returns -1 on error, but leaves the
pointer uninitialized.  Only the BSDs zero out the pointer on error.

Also, while fixing these warnings I saw several error paths that were
incorrect.  This patch minimally fixes the warn_unused_result; more
complete error path cleanup will be a later patch.

Signed-off-by: Charles Coffing <ccoffing@novell.com>
tools/blktap/drivers/blktapctrl.c
tools/blktap/drivers/block-qcow.c
tools/blktap/drivers/tapdisk.c
tools/blktap/lib/xenbus.c
tools/blktap/lib/xs_api.c
tools/console/daemon/io.c